package com.xy.config;

import com.xy.bean.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import sun.nio.cs.UTF_32;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/4/8 19:35
 * @description
 */

//读取外部配置文件
@PropertySource(value = {"classpath:/person.properties"})
@Configuration
public class MainConfigPropertyValue {

    @Bean
    public Person person() {
        return new Person();
    }
}
